<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动画</title>
    <script src="js/jquery-3.3.1.min.js"></script>
    <style>
        #box {
            width: 300px;
            height: 300px;
            background-color: yellow;
            position: absolute;
        }
    </style>
</head>
<body>
<div id="box"></div>
<script>
    $('#box').animate({width: 600, opacity: 0.8, top: '100'}, 5000, function () {
        alert('动画完成')
    })

</script>
</body>
</html>